﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Framework.Platform.Components.UI.View
{
    /// <summary>
    /// 系统导航接口
    /// </summary>
    public interface INavigator : IView
    {
        #region 变量与属性
        NavigatorItemBase SelectedItem { get; set; }
        #endregion

        #region 方法
        void SelectItemByKey(string key);

        void AddItem(NavigatorItemBase item);

        NavigatorItemBase GetItemByKey(string key);
        #endregion
    }

    public class NavigatorEvents : ViewEvents
    {
        public const string OnItemAdding = "ItemAdding";

        public const string OnItemAdded = "ItemAdded";

        public const string OnSelectedChanged = "SelectedChanged";

        public const string OnDataLoaded = "DataLoaded";
    }
}
